package cn.afterturn.easypoi.word.parse.Algorithm;

import cn.afterturn.easypoi.word.parse.OfficeConstants;

public class FactoryParseThisParagraph {
    public static ParseParagraphAlgo getparseParagraphAlgo(String expression){
        ParseParagraphAlgo parsePara;
        switch(expression){
            case OfficeConstants.GET_WORDALLBOOKMARK :
                return new ParagraphAllBookMark();
                //break; //可选
            case OfficeConstants.SET_WORDALLBOOKMARKCOLOR :
                return new ParagraphAllBookMarkColor();
                //break; //可选
            case OfficeConstants.SET_WORDALLBOOKMARKVALUECOLOR :
                return new ParagraphAllBookMarkValueColor();
                //break; //可选
            //你可以有任意数量的case语句
            default : //可选
                System.out.println("输入的实例化的参数有错误");
                return  null;
        }

    }

}
